package day5;

import java.util.Scanner;

public class zuoye16 {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入一个字符串");
		String str = scanner.next();
		char[] array = str.toCharArray();
		for (int i = 0; i < array.length; i++) {
			int a = array.length - i - 1;
			if (array[i] == array[a] && a != i) {
				System.out.println("这个数是回文数");
				break;
			} else {
				System.out.println("不是回文数");
				break;
			}
		}

	}

}
